num = input()
sum = 0
max = 0
min = 100
for i in range(int(num)):
    g = int(input())
    if g <min:
        min = g
    if g > max:
        max = g
    sum +=g
#四舍五入保留正好两位小数
avg = sum/int(num)
print(max)
print(min)
print("{:.2f}".format(avg))



